﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Kkc.Model.PageLink>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Ny side
</asp:Content>

<asp:Content ID="HeadContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Opprett ny lenke</h2>

    <%= Html.ValidationSummary("Lagringen kunne ikke fullføres på grunn av feil inntastede verdier. Venligst rett feilene og prøv igjen.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Felt</legend>
            <p>
                <label for="Title">Tittel:</label>
                <%= Html.TextBox("Title", string.Empty, new { @class = "full" })%>
                <%= Html.ValidationMessage("Title", "*") %>
            </p>
            <p>
                <label for="Title">Url:</label>
                <%= Html.TextBox("Url", string.Empty, new { @class = "full" })%>
                <%= Html.ValidationMessage("Url", "*") %>
            </p>
            <p>
                <label for="Body">Åpnes i:</label>
                <%= Html.DropDownList("Target", new[] { new SelectListItem { Text ="Samme vindu", Value = " " }, new SelectListItem { Text = "Nytt vindu", Value = "_blank" }}) %>
                <%= Html.ValidationMessage("Target", "*") %>
            </p>
            <p>
                <input class="button button-big" type="submit" value="Lagre" />
                <input type="hidden" name="route" id="route" value="<%= Model.SourceRoute %>" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LeftSideContent" runat="server">
    <ul>
        <li class="first"><a href="<%= Url.Content("~/"+Model.SourceRoute) %>">Tilbake til siden</a></li>
    </ul>
</asp:Content>